﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage" %>
<asp:Content ID="indexContent" ContentPlaceHolderID="MainContent" runat="server">
    <div id="shorten-url">
        <% using (Html.BeginForm())
           { %>
        <fieldset>
            <p>
                Short your long url to short url</p>
            <p class="longurl">
                <label>
                    Long url</label>
                <%= Html.TextBox("LongUrl")%></p>
            <p>
                Custom name:
                <%= Html.TextBox("CustomName") %></p>
            <p>
                <span class="status"></span>
            </p>
            <p>
                <a href="#" class="button-green" onclick="CreateShortUrl()">Short it</a></p>
        </fieldset>
        <% } %>
    </div>
</asp:Content>
